package com.arlin.spring.context;

import com.arlin.spring.enums.ScopeValue;

/**
 * @ClassName: BeanDefinition
 * @Description: TODO
 * @Author: arlin
 * @Date: 2021/12/13
 */
public class BeanDefinition {

    private ScopeValue scope;
    private Class<?> beanClass;

    public BeanDefinition() {
        this.scope = ScopeValue.SINGLETON;
    }

    public BeanDefinition(ScopeValue scope, Class<?> beanClass) {
        this.scope = scope;
        this.beanClass = beanClass;
    }

    public ScopeValue getScope() {
        return scope;
    }

    public void setScope(ScopeValue scope) {
        this.scope = scope;
    }

    public Class<?> getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(Class<?> beanClass) {
        this.beanClass = beanClass;
    }
}
